using System;
using System.Collections.Generic;
using System.Text;
using WCSFContrib.ECommerceCatalog.User.Interfaces.Services;
using WCSFContrib.ECommerceCatalog.BusinessEntities;

namespace WCSFContrib.ECommerceCatalog.User.Tests.Fakes
{
    public class FakeCartService : ICartService
    {
        #region ICartService Members

        public ICollection<BusinessEntities.Cart> AllCarts
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public Cart GetCartByUserName(string userName)
        {
            if (userName != "userTest")
                return null;

            return new Cart();
        }

        public void AddItem(string userName, int itemId, int quantity)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public void RemoveItem(string userName, BusinessEntities.Item item, int quantity)
        {
            
        }

        public void DeleteCart(string userName)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion
    }
}
